﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/content.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta name="keyword" content="${webSite.title}" />
		<title>${webSite.title}</title>
		<%@ include file="/jsps/modules/useragent.jsp"%>

		<script src="${ctx}/jsps/theme/${webSite.webSkin.filename}/js/ms.js"
			type="text/javascript"></script>

		<link type="text/css" rel="stylesheet"
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/global.css" />
		<link type="text/css" rel="stylesheet"
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/reg_page.css" />
		<link rel="stylesheet" type="text/css"
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/uni_login.css" />

		<script type="text/javascript">
				$(document).ready(function() {
						$("#pass_reg_form_0")
								.validate(
										{
											rules : {
												loginName : {
													required : true,
													maxlength : 16,
													remote : "checkMemberAction!checkName.action?orgName=''&math="
															+ Math.random()
												},
												password : {
													required : true,
													maxlength : 16,
													minlength : 6
												},
												verifypass : {
													required : true,
													maxlength : 16,
													minlength : 6
												},
												names : {
													required : true
												},
												mobile : {
													required : true
												},
												zone : {
													required : true
												},
												workunit : {
													maxlength : 20
												},
												vercode : {
													required : true,
													remote : "checkCodeAction!checkCode.action?math="
															+ Math.random()
												}
											},
											messages : {
												loginName : {
													remote : "该用户已存在"
												},
												vercode : {
													remote : "校验码错误!"
												}
											},
											success : function(label) {
												label.html("&nbsp;").addClass(
														"checked");
											}
										});

						$("#AuthImg").click(function() {
							var timenow = new Date().getTime();
							this.src = "${ctx}/AuthImg?d=" + timenow;
						});

						$('#pass_reg_submit_0').click(function(){
								if($("#verifypass").val()!=$("#password").val()){
									alert("重复密码不一致");
								}else
								$('#pass_reg_form_0').submit()
						})
					});
</script>
	</head>
	<body style="background: white;">
		<div class="mod-header grid-96">
			<div class="logo">
				<a href="${ctx}"><img alt="baidu"
						src="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/lianlian_logo.jpg">
				</a>
			</div>
		</div>
		<div class="mod-bread clearfix">
			<div class="grid-96">
				<div class="bread-left">
					填写注册信息
				</div>
				<div class="bread-right">
					已有帐号？
					<a id="login" href="${ctx}/indexNewsAction.htm">马上登录</a>
				</div>
			</div>
			<div class="mod-regcontent grid-96" id="content_reg">
				<form class="pass_reg_form" id="pass_reg_form_0"
					name="pass_reg_form_0"
					action="indexNewsAction!memberRegister.htm" method="post">

					<p class="pass_reg_p pass_reg_p_email grid-96"
						id="pass_reg_p_email_0">
						<label class="pass_reg_label pass_reg_label_email"
							id="pass_reg_label_email_0" />
						用户名
						</label>
						<input class="pass_reg_input pass_reg_input_email" id="loginName"
							type="text" name="loginName" />
					</p>


					<p class="pass_reg_p pass_reg_p_password grid-96"
						id="pass_reg_p_password_0">
						<label class="pass_reg_label pass_reg_label_password"
							id="pass_reg_label_password_0">
							密码
						</label>
						<input class="pass_reg_input pass_reg_input_password"
							id="password" type="password" name="password" />
					</p>

					<p class="pass_reg_p pass_reg_p_repassword grid-96"
						id="pass_reg_p_repassword_0">
						<label class="pass_reg_label pass_reg_label_repassword" />
						确认密码
						</label>
						<input class="pass_reg_input pass_reg_input_repassword"
							id="verifypass" type="password" name="verifypass" />
					</p>

					<p class="pass_reg_p pass_reg_p_repassword grid-96"
						id="pass_reg_p_repassword_0">
						<label class="pass_reg_label pass_reg_label_repassword">
							姓名
						</label>
						<input class="pass_reg_input pass_reg_input_repassword" id="names"
							type="text" name="names" />
					</p>

					<p class="pass_reg_p pass_reg_p_repassword grid-96"
						id="pass_reg_p_repassword_0">
						<label class="pass_reg_label pass_reg_label_repassword"
							id="pass_reg_label_repassword_0">
							手机号码
						</label>
						<input class="pass_reg_input pass_reg_input_repassword"
							id="mobile" type=text name="mobile">
					</p>

					<p class="pass_reg_p pass_reg_p_repassword grid-96"
						id="pass_reg_p_repassword_0">
						<label class="pass_reg_label pass_reg_label_repassword"
							id="pass_reg_label_repassword_0">
							区域
						</label>
						<input class="pass_reg_input pass_reg_input_repassword" id="zone"
							type="text" name="zone">
					</p>

					<p class="pass_reg_label pass_reg_label_repassword"
						id="pass_reg_label_repassword_0" for="pass_reg_repassword_0">
						如果是实体店代理商，也请完善一下的资料：
					</p>
					<p class="pass_reg_p pass_reg_p_repassword grid-96"
						id="pass_reg_p_repassword_0">
						<label class="pass_reg_label pass_reg_label_repassword"
							id="pass_reg_label_repassword_0" for="pass_reg_repassword_0">
							店名
						</label>
						<input class="pass_reg_input pass_reg_input_repassword"
							id="workunit" type="text" name="workunit" />
					</p>

					<p class="pass_reg_p pass_reg_p_repassword grid-96"
						id="pass_reg_p_verifycode_0">
						<label class="pass_reg_label pass_reg_label_verifycode"
							id="pass_reg_label_verifycode_0">
							验证码
						</label>
						<input class="pass_reg_input pass_reg_input_verifycode"
							style="float: left;" id="vercode" type="text" name="vercode" />
						<img src="${ctx}/AuthImg" class="pass_reg_verifycode" id="AuthImg"
							alt="验证码图片" title="验证码图片" />
					</p>


					<p class="pass_reg_p pass_reg_p_submit grid-96"
						id="pass_reg_p_submit_0">
						<input class="pass_reg_submit pass_reg_submit_default"
							id="pass_reg_submit_0" type="button" value="注册" tabindex="7">
					</p>
				</form>
			</div>

			<div class="mod-footer grid-96">
				©2012 德诚通讯
			</div>
	</body>
</html>